{% extends "dash/sidebar.html" %}

{% load dash_filters avatar_tags%}


{% block sidebar_user_info %}
<div class="sidebar-user">
    <div class="user-name">{{ user.first_name }} {{ user.last_name }}</div>
    {% block sidebar_user_info_avatar %}
    <div class="logbook-user-image">
        <div class="thumbnail">
            <img src="{% avatar_url user 100 %}" alt="Logo" />
        </div>
    </div>
    {% endblock sidebar_user_info_avatar %}
    {% block user_range %}{% endblock %}
</div>
{% endblock sidebar_user_info %}


{% block sidebar_stats %}
    <div class="sidebar-stadistic">
        <a href="#">
            <div class="stadistic-fan sidebar-stadistic-item" title="Podés consultar de que items sos Fan">
                <div class="stadistic-num">{{ user.followers.count }}</div>
                <div class="stadistic-nom">Sus Fan{% if user.followers.count > 1 %}s{% endif %}</div>
            </div>
        </a>
    </div>
{% endblock sidebar_stats %}

{% block sidebar_indicators %}{% endblock sidebar_indicators %}

{% block boton %}
<div class="sidebar-follow-user">
    {% if i_follow %}
        <a href="/dash/unfollow/{{ user.pk }}"><div class="new-no-item-buttom-mati">Dejar de seguir</div></a>
    {% else %}
        <a href="/dash/follow/request/{{ user.pk }}"><div class="new-item-buttom-mati">Seguir Empresa</div></a>
    {% endif %}
    <a href="/social/consulta_a_empresa/{{ user.pk }}"><div class="new-item-buttom-mati">Enviar consulta</div></a>
</div>
{% endblock boton %}
